package com.spring.utils;

public class Validate {

    public static boolean isClassFile(String fileName) {
        return fileName.endsWith(".class");
    }

    public static String removeSuffix(String str) {return str.substring(0, str.lastIndexOf('.'));}

    public static String toLowerCaseFirstChar(String str) {
        if (str == null || str.isEmpty()) {
            return str;
        }
        return str.substring(0, 1).toLowerCase() + str.substring(1);
    }
}
